package com.robosense.datacenter.biz.guard.service.impl;

import com.robosense.datacenter.biz.guard.bo.Singer;
import com.robosense.datacenter.biz.guard.service.SingerService;
import com.robosense.datacenter.dynamic.datasource.DBTypeEnum;
import com.robosense.datacenter.dynamic.datasource.DataSourceSwitch;
import com.robosense.datacenter.mapper.guard.SingerMapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
@Service
public class SingerServiceImpl extends ServiceImpl<SingerMapper, Singer> implements SingerService {

    @Override
    public int updateBatch(List<Singer> list) {
        return baseMapper.updateBatch(list);
    }
    @Override
    public int batchInsert(List<Singer> list) {
        return baseMapper.batchInsert(list);
    }
    @Override
    public int insertOrUpdate(Singer record) {
        return baseMapper.insertOrUpdate(record);
    }
    @Override
    public int insertOrUpdateSelective(Singer record) {
        return baseMapper.insertOrUpdateSelective(record);
    }

//    @DataSourceSwitch(DBTypeEnum.guard)
    @Override
    public Singer getBySingerId(String id) {
        return this.getById(id);
    }
}
